<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;




Route::group('api/:version',function (){
    Route::get('img','api/:version.Cet/getValidateImg');
    Route::get('view','api/:version.Cet/test');
    Route::post('get','api/:version.Cet/getGrades');
    //banner
    Route::group('/banner',function (){
        Route::get('/:id', 'api/:version.Banner/getBanner',[],['id'=>'\d+']);
    });
    //map
    Route::group('/map',function (){
        Route::get('/init','api/:version.Map/init');
    });
    //token
    Route::group('/token',function (){
        Route::post('/verify', 'api/:version.Token/checkToken');
        Route::post('/user', 'api/:version.Token/getToken');
    });
    //article
    Route::group('/article',function (){
        Route::get('/queryClass','api/:version.Article/queryClass');
        Route::get('/query','api/:version.Article/query');
        Route::get('/queryOne/:article_id','api/:version.article/queryOne',[],['article_id'=>'\d+']);
    });
    Route::group("/admission",function (){
        Route::post("query","api/:version.Admission/query");
        Route::post("luqu","api/:version.Admission/luqu");
    });
    Route::group("cet",function (){
       Route::get("img","api/:version.Cet/getCetImg");
       Route::get("grades","api/:version.Cet/getCetGrades");
    });
});